import i18n from '@/locales/index'
const { t } = i18n.global

export const columns = [
  {
    title: t('common.sequenceNo'), dataIndex: 'index', key: 'index', align: 'center', width: 60,
    customRender: ({ index }) => {
      return index + 1
    }
  },
  { title: t('deviceManage.waterLine') , dataIndex: 'lineNameAndNo', key: 'lineNameAndNo', align: 'center' },
  { title: t('other.statisticalRule'), dataIndex: 'rule', key: 'rule', align: 'center' },
  { title: t('other.lineTargetYieldPiece'), dataIndex: 'production', key: 'production', align: 'center' },
  { title: t('other.enableOrNot'), dataIndex: 'status', key: 'status', align: 'center' },
  { title: t('common.operate'), dataIndex: 'operate', key: 'operate', align: 'center', width: 130 }
]

export const addDayColumns = [
  {
    title: t('common.sequenceNo'), dataIndex: 'index', key: 'index', align: 'center', width: 60,
    customRender: ({ index }) => {
      return index + 1
    }
  },
  { title: t('hangManage.periodTime'), dataIndex: 'timeRange', key: 'timeRange', align: 'center', width: 170 },
  { title: t('hangManage.targetYield'), dataIndex: 'production', key: 'production', align: 'center', width: 130 },
  { title: t('common.operate'), dataIndex: 'operate', key: 'operate', align: 'center', width: 130 }
] 

export const addStyleColumns = [
  {
    title:  t('common.sequenceNo'), dataIndex: 'index', key: 'index', align: 'center', width: 60,
    customRender: ({ index }) => {
      return index + 1
    }
  },
  { title: t('basicData.style'), dataIndex: 'styleNo', key: 'styleNo', align: 'center', width: 170 },
  { title: t('hangManage.targetYield'), dataIndex: 'production', key: 'production', align: 'center', width: 130 },
  { title: t('common.operate'), dataIndex: 'operate', key: 'operate', align: 'center', width: 130 }
] 
